import { Pipe, PipeTransform } from '@angular/core';
import {ActivityStatus} from "../../../model/pages/activity/activity-filter/activity-filter.model";

@Pipe({
    name: 'activityStatusPipe',
})
export class ActivityStatusPipe implements PipeTransform {

    transform(status) {
        switch (status) {
            case ActivityStatus.notStart:
                return '未开始';
            case ActivityStatus.processing:
                return '进行中';
            case ActivityStatus.over:
                return '已结束';
            default:
                return '';
        }
    }
}
